package trading_strategy.orders;

import trading_strategy.instruments.ListedInstrument;

/**
 * Created by IntelliJ IDEA.
 * User: gderoujoux
 * Date: 6 mai 2010
 * Time: 11:14:01
 * To change this template use File | Settings | File Templates.
 */
public class LimitOrder extends Order {
    double limit;
    public LimitOrder(ListedInstrument instrument, int qty, double price, String comment, IOrderAutomaton automaton, long ts) {
        super(instrument, qty, comment, automaton, ts);
        this.limit = price;
    }

    public double getLimit() {
        return limit;
    }

    public String toString() {
        return "LIMIT " + getQty() + "@" + getLimit();
    }
}